﻿using System.Diagnostics.CodeAnalysis;
using Inovout.Models;

namespace Inovout.NumberGenerator
{
    public partial class SequenceNumber:DataObject
    {
        private int period;
        public int Period
        {
            get { return period; }
            set { period = value; }
        }
        private int increment;
        public int Increment
        {
            get { return increment; }
            set { increment = value; }
        }
        private string key;
        public virtual string Key
        {
            get { return key; }
            set { key = value; }
        }

        [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
        public static readonly StringPersistentProperty KeyPersistentProperty = new StringPersistentProperty("Key", typeof(SequenceNumber));
        [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes")]
        public static readonly NumberPersistentProperty PeriodPersistentProperty = new NumberPersistentProperty("Period", typeof(SequenceNumber));
    }
}
